package com.itheima.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@TableName("tb_analysis_by_day") // 指定表名
@Data
@AllArgsConstructor
@NoArgsConstructor
public class AnalysisDay {
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;
    @TableField(value = "record_date",exist = true)
    private Date recordDate; //日期
    @TableField(value = "num_registered",exist = true)
    private Integer numRegistered;//新注册用户数
    @TableField(value = "num_active",exist = true)
    private Integer numActive;//活跃用户数
    @TableField(value = "num_login",exist = true)
    private Integer numLogin;//登陆次数
    @TableField(value = "num_retention1d",exist = true)
    private Integer numRetention1d;//次日留存用户数
    @TableField(value = "created",exist = true)
    private Date created;//数据创建时间
    @TableField(value = "updated",exist = true)
    private Date updated;//数据更新时间
}
